import java.util.Scanner;

public class b6{
    public static void main(String[] args) {
        String a1[]={"1","2","3","4","5","6","7","8","9","10"};
        Scanner sc=new Scanner(System.in);
        double a2[]=new double[10];
        for (int i=0;i<a1.length;i++){
            System.out.print("请输入"+a1[i]+"的价格：");
            a2[i]=sc.nextDouble();
        }
        double sum=0;
        for (int i=1;i<a1.length;i++){
            System.out.println(a1[i]+"的价格为："+a2[i]+"元");
            sum=sum+a2[i];
        }
        System.out.println("总金额为："+sum+"元");
    }
}